package com.hkemmm.shop.dao;

import com.hkemmm.shop.entity.Order;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OrderMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Order record);

    int insertSelective(Order record);

    Order selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Order record);

    int updateByPrimaryKey(Order record);

    int countOrder(@Param("uid") Integer uid, @Param("status") Integer status);

    List<Order> getOrderInfo(@Param("uid") Integer uid, @Param("state") int[] state, @Param("start") int start);

    int updateStatus(@Param("id") Integer id, @Param("uid") Integer uid, @Param("status") Integer status);

    Order selectByCode(String code);

    List<Order> getAllOrder();
}